package com.cy.store.service;

import com.cy.store.entity.User;

import java.util.Date;

public interface IUserService {

    public void reg(User user);

    public User login(String username,String passsword);

    public void updatePasswordByUid(Integer uid, String username,String oldPassword,String newPassword);

    User findByUid(Integer uid);

    public void changeInfo(Integer uid,String username,User user);

    public void changeAvatar(Integer uid,
                             String username,
                             String avatar);

}
